<!DOCTYPE html>

<html class="no-js">

<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <title></title>
  <meta name="description" content="" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <script src="https://cdn.staticfile.org/axios/0.19.0-beta.1/axios.js"></script>
  <script src="https://cdn.staticfile.org/vue/2.5.17/vue.js"></script>
  <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.13.0/theme-chalk/index.css" />
  <script src="https://cdn.staticfile.org/element-ui/2.13.0/index.js"></script>

  <link rel="stylesheet" href="../../../lib/index.css" />
  <script src="../../../lib/avue.js"></script>
</head>

<body>
  <div id="app">
    <avue-detail v-model="form" :option="option">
      <template slot="slot">
        自定义内容
      </template>
      <template slot="textForm" slot-scope="scope">
        <span>自定义内容1</span>
      </template>
    </avue-detail>
  </div>
</body>
<script>
  new Vue({
    el: '#app',
    data() {
      return {
        form: {
          qhdh: '1000000000',
          zt: '110000',
          xsdh: '1234123421',
          zdd: '3214321432',
          yhxm: '付小小',
          lxdh: '18100000000',
          cykd: '菜鸟仓储',
          qhdz: '浙江省杭州市西湖区万塘路18号',
          bz: '无'
        },
        option: {
          group: [{
            label: '退款申请',
            prop: 'tksq',
            icon: 'el-icon-view',
            column: [{
              label: '取货单号',
              prop: 'qhdh'
            }, {
              label: '',
              labelWidth: 0,
              prop: 'zt',
              dicUrl: 'https://cli.avuejs.com/api/area/getProvince',
              props: {
                label: 'name',
                value: 'code'
              },
              row: true
            }, {
              label: '销售单号',
              prop: 'xsdh',
            }, {
              label: '子订单',
              prop: 'zdd'
            }]
          },
          {
            label: '用户信息',
            prop: 'yhxx',
            icon: 'el-icon-edit-outline',
            column: [{
              label: '用户姓名',
              prop: 'yhxm'
            }, {
              label: '联系电话',
              prop: 'lxdh'
            }, {
              label: '常用快递',
              prop: 'cykd'
            }, {
              label: '取货地址',
              prop: 'qhdz',
              row: true
            }, {
              label: '备注',
              prop: 'bz',
              display: false,
            }, {
              label: '自定义',
              prop: 'text',
              formslot: true,
            }]
          }, {
            label: '自定义卡槽',
            prop: 'slot',
            slot: true,
            icon: 'el-icon-view'
          }]
        }
      };
    }
  })
</script>

</html>